1b511b7b3ed195c017dac304e544b62360a03898,src/main/java/jeresources/jei/dungeon/DungeonCategory.java,DungeonCategory,setRecipe,#IRecipeLayout#IRecipeWrapper#IIngredients#,81

Before Change


            }
        }

        if (recipeWrapper instanceof DungeonWrapper)
        {
            DungeonWrapper dungeonWrapper = (DungeonWrapper) recipeWrapper;
            recipeLayout.getItemStacks().addTooltipCallback(dungeonWrapper);
            int slots = Math.min(dungeonWrapper.amountOfItems(), ITEMS_PER_PAGE);
            for (int i = 0; i < slots; i++)
                recipeLayout.getItemStacks().set(i, dungeonWrapper.getItems(i, slots));

After Change


    }

    @Override
    public void setRecipe(@Nonnull IRecipeLayout recipeLayout, @Nonnull DungeonWrapper recipeWrapper, @Nonnull IIngredients ingredients) {
        int x = X_FIRST_ITEM;
        int y = Y_FIRST_ITEM;
        for (int i = 0; i < Math.min(ITEMS_PER_PAGE, ingredients.getOutputs(ItemStack.class).size()); i++)
        {
            recipeLayout.getItemStacks().init(i, false, x, y);
            x += SPACING_X;

            if (x >= X_FIRST_ITEM + SPACING_X * Settings.ITEMS_PER_ROW * 2)
            {
                x = X_FIRST_ITEM;
                y += SPACING_Y;
            }
        }

        recipeLayout.getItemStacks().addTooltipCallback(recipeWrapper);
        int slots = Math.min(recipeWrapper.amountOfItems(), ITEMS_PER_PAGE);
        for (int i = 0; i < slots; i++)
            recipeLayout.getItemStacks().set(i, recipeWrapper.getItems(i, slots));